package com.btpj.shop.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * banner
 *
 * @author BTPJ
 */
@ApiModel("轮播图接口实体")
@Data
public class BannerDto implements Serializable {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("轮播图片的Url")
    private String url;

    @ApiModelProperty("点击后跳转的Url")
    private String clickUrl;

    @ApiModelProperty("排序值（值越大越靠前）")
    private Integer sort;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss")
    private Date updateTime;

    private Long updateUser;

    private static final long serialVersionUID = 1L;
}